#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<string>
using namespace std;





//int main()
//{
//	int num1 = 1;
//	double num2 = 4;
//	Swap<int,double>(num1, num2);
//	cout << num1 <<"-"<< num2 << endl;
//}

class Solution
{
public:
	int changestring(string& s)
	{
		int i = 0;
		while (s[i])
		{
			if (s[i] >= 65 && s[i] <= 90)
			{
				s[i] += 32;
				i++;
			}

			else if (s[i] < 97 || s[i] > 122)
			{
				for (int j = i + 1; j <= s.size(); j++)
				{
					s[j - 1] = s[j];
				}
				i = 0;
			}
			else
			{
				i++;
			}
		}

		int j = 0;
		while (s[j])
		{
			j++;
		}

		return j;
	}

	bool isPalindrome(string s)
	{
		
		int begin = 0;
		int end = changestring(s)-1;
		while (begin < end)
		{
			if (s[begin] != s[end])
				return false;
			begin++;
			end--;
		}
		if (begin == end)
			return false;
		return true;
	}
};

int main()
{
	char s[] = "a";
	Solution s1;
	cout << s1.isPalindrome(s) << endl;
	return 0;
}